package com.hdoit.ares.web.policy.modelconfig;

import com.hdoit.ares.web.cust.providers.CustomerLevelProvider;
import com.hdoit.ares.web.policy.provider.policySignsStateProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class ListPolicySearchConfig extends ModelMetadataAttributeConfiguration{

	public ListPolicySearchConfig(){
   
		 this.setProperty("signs")
	        .hasAttribute(new DisplayNameAttribute("产品标识"))
	        .hasAttribute(new DropDownListAttribute(new policySignsStateProvider("senior")));
		 
	    this.setProperty("productName")
	        .hasAttribute(new DisplayNameAttribute("产品名称"));
	    
	    this.setProperty("oid")
	    	.hasAttribute(new DisplayNameAttribute("保单号/任务号"));
	
	    this.setProperty("startDate")
	        .hasAttribute(new DisplayNameAttribute("起保日期"))
	        .hasAttribute(new DateTimeAttribute());
	    
	    this.setProperty("endDate")
	        .hasAttribute(new DisplayNameAttribute("终保日期"))
	        .hasAttribute(new DateTimeAttribute());
	    
	    this.setProperty("createDate")
        .hasAttribute(new DisplayNameAttribute("创建时间"))
        .hasAttribute(new DateTimeAttribute());
	
	    this.setProperty("level")
	        .hasAttribute(new DisplayNameAttribute("客户级别"))
	        .hasAttribute(new DropDownListAttribute(new CustomerLevelProvider("senior")));
		}
}
